import re

file = r'./shanghai/everydaynew.txt'

f = open(file, 'r')
lines = f.readlines()
f.close()

xAxis = []  # 日期
yAxisA = [] # 确诊病例
yAxisB = [] # 无症状者

for line in lines:
    # print(line)
    xAxis.append(line[0:10])

    target = line.split('，')[1]
    print(target)
    a, b = re.findall(r'\d+', target)
    print(a, b)
    pass
print(xAxis)